package test_01;

import java.lang.reflect.Array;
import java.util.Arrays;

public class test04 {
    public static void main(String[] args) {

        int[] arr = new int[10];

        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random() * 100 + 1);
        }

        System.out.println(Arrays.toString(arr));

        System.out.printf("[");
        for (int j = arr.length - 1; j >= 0; j--) {
            if (j == 0) {
                System.out.print(arr[j]);
            } else {
                System.out.print(arr[j] + ", ");
            }

        }
        System.out.printf("]");

    }
}
